package com.hnichr.ump.common.assessment.entity;

import com.hnichr.ump.common.entity.UmpEntity;
import com.mxpioframework.jpa.annotation.Generator;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "t_assessment_option")
@Schema(description = "测评活动本地试题题目选项表")
public class Option extends UmpEntity {
    @Id
    @Generator
    @Column(name = "ID_", updatable = false)
    @Schema(description = "ID")
    private String id;

    @Column(name = "QUESTION_ID_")
    @Schema(description = "题目ID")
    private String questionId ;

    @Column(name = "OPTION_CODE_")
    @Schema(description = "选项编码")
    private String optionCode ;

    @Column(name = "OPTION_NAME_",length = 1000)
    @Schema(description = "选项")
    private String optionName ;

    @Column(name = "DEL_FLAG_")
    @Schema(description = "删除标志")
    private String delFlag= "0";

    @Column(name = "ORDER_NUM_")
    @Schema(description = "排序字段")
    private Integer orderNum;

}
